#include <iostream>
using namespace std;
int main(){
    int num=10;
    int& ref1=num;
    int& ref2=ref1;
    cout<<&num<<endl;
    cout<<&ref1<<endl;
    cout<<&ref2<<endl;
    cout<<ref2<<endl;
    return 0;
}
